Diagnosis is